/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IrisRecognitionDevice {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020027';
    }

    get categoryName() {
        return '\u8679\u819c\u8bc6\u522b\u5668';
    }

    getDeleteIris(params) {
        return command({
            method: 'getDeleteIris',
            methodId: 'ptRSbseE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIrisInputTimes(params) {
        return command({
            method: 'getIrisInputTimes',
            methodId: 'phEq1D7I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIrisRecognition(params) {
        return command({
            method: 'getIrisRecognition',
            methodId: 'pdN73uD9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getIrisValue(params) {
        return command({
            method: 'getIrisValue',
            methodId: 'pghzWYOz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vFBbzR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkMode(params) {
        return command({
            method: 'getWorkMode',
            methodId: 'pDrhEqNW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDeleteIris(params) {
        return command({
            method: 'setDeleteIris',
            methodId: 'pGox7xKo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIrisInputTimes(params) {
        return command({
            method: 'setIrisInputTimes',
            methodId: 'pZgRtGU1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIrisValue(params) {
        return command({
            method: 'setIrisValue',
            methodId: 'pUPQO3Lk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peHyqS4b',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkMode(params) {
        return command({
            method: 'setWorkMode',
            methodId: 'ppAXiVbq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IrisRecognitionDevice;
